<form class="layui-form"  action="{:url('mp/OutNodeProgress/returnTime')}"   id="onClickOrderActionTplform" >

    <h2 class="layui-colla-title">订单号： {$client_ordernum}</h2>
    <table class="layui-table small-table">
        <thead>
        <tr>
            <th>上次返工原因</th>
            <th>返工原因</th>
            <th>返工数量</th>
            <th>返工计时</th>
            <th>计时单价</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td></td>
            <td>
                <input type="text" class=" layui-input" name="after_return_reason" {if $type=="readonly"} readonly {/if} value=" {$after_return_reason}" autocomplete="off" placeholder="请输入原因" >
            </td>
            <td>
                <input type="text" class=" layui-input" name="after_return_num" {if $type=="readonly"} readonly {/if} style="width:80px;"  value=" {$after_return_num}" autocomplete="off" placeholder="请输入数量" lay-verify="number">
            </td>
            <td>
                <input type="text" class=" layui-input" name="after_return_time" {if $type=="readonly"} readonly {/if} style="width:80px;"  value=" {$after_return_time}" autocomplete="off" placeholder="请输入数量" lay-verify="number">
            </td>
            <td>
                {$unit_time_price}元/H
            </td>
        </tr>
        </tbody>
    </table>
    <div class="layui-inline fr" style="margin: 20px 20px;">
        <input type="hidden" name="order_id" value="{$order_id}">
        <button type="button" class="layui-btn layui-btn-normal" id="submitonClickOrderActionform">确定</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>


{include file="system@block/layui" /}
<script type="text/javascript">
    layui.use([ 'element', 'layer', 'laytpl', 'tool','laydate','table','form','flow'], function() {
        var element = layui.element;
        var layer = layui.layer;
        var $ = layui.jquery;
        var form = layui.form;
        var laytpl = layui.laytpl,laydate=layui.laydate ,table = layui.table;
        var flow = layui.flow;

        $(document).on('click','#submitonClickOrderActionform',function(e) {
            e.stopPropagation();
            $.ajax({
                type: "POST",
                url: "{:url('mp/OutNodeProgress/returnTime')}",
                data: $('#onClickOrderActionTplform').serialize() ,
                dataType:"json",
                success: function(res){
                    if (res.code == 1) {
                        window.parent.location.reload();
                        parent.layer.closeAll();
                    } else {
                        layer.msg(res.msg, {icon: 2,anim: 6});
                    }
                }
            });
            return false;
        });
    });
</script>